package com.ruoyi.constant;

/**
 * erp中常用的公共常量类
 * @author lsy 2021.12.29
 */
public class ERPConstant {
    /**
     * 通用类型
     */
    //未完成
    public static final String COMMON_UNFINISHED = "0";
    //已完成
    public static final String COMMON_FINISHED = "1";
    //失败
    public static final String COMMON_FAIL = "0";
    //成功
    public static final String COMMON_SUCCEED = "1";
    //未知
    public static final String COMMON_UNKNOWN = "2";
    //否
    public static final String COMMON_NO = "0";
    //是
    public static final String COMMON_YES = "1";

    /**
     * OA审批
     */
    //审批中
    public static final String Approval_In_Progress = "0";
    //审批未通过
    public static final String Approval_Not_Success = "1";
    //审批通过
    public static final String Approval_Success = "2";
    //审批未完成
    public static final String Approval_Not_Completed = "3";
    //审批最终完成
    public static final String Approval_Completed = "4";
    //审批完成后的当前审核人
    public static final Long Approval_Completed_Approver = Long.valueOf(-1);

    /**
     * 审批类型
     */
    //采购申请
    public static final String Approval_Type_Purchase = "1";
    //入库审批
    public static final String Approval_Type_Storage = "2";
    //销售订单
    public static final String APPROVAL_TYPE_SALE_ORDER = "3";
    //生产计划
    public static final String APPROVAL_TYPE_PRODUCE_PLAN = "4";
    //加工单
    public static final String APPROVAL_TYPE_WORKSHEET = "5";
    //领、退、补料单
    public static final String APPROVAL_TYPE_PRODUCE_MATERIAL = "6";
    //销售出库
    public static final String APPROVAL_TYPE_SALE_DELIVERY = "7";
    //销售退回
    public static final String APPROVAL_TYPE_SALE_RETURN = "8";
    //委外加工
    public static final String APPROVAL_TYPE_PRODUCE_OUT_PLAN = "9";

    /**
     * 验收入库类型
     */
    /**
     * 加工单
     */
    public static final String RECEIVING_WORKSHEET = "1";
    /**
     * 委外
     */
    public static final String RECEIVING_OUTSOURCEING = "2";
    /**
     * 采购
     */
    public static final String RECEIVING_PURCHASE = "3";
    /**
     * 未入库
     */
    public static final String RECEIVING_NotWAREHOUSED = "0";
    /**
     * 已入库
     */
    public static final String RECEIVING_WAREHOUSED = "1";

    /**
     * 出库记录类型
     */
    //领料
    public static final String LingLiao = "1";
    //销售出库
    public static final String SALE_DELIVERY = "2";

    /**
     * 质检报告
     */
    //未检验
    public static final String NOT_INSPECTED = "0";
    //已检验
    public static final String CHECKED = "1";

    /**
     * 客户供应商
     */
    //客户
    public static final String CS_CUSTOMER = "0";
    //供应商
    public static final String CS_SUPPLIER = "1";

    /**
     * 排产等级
     */
    public static final int SCHEDULING_MAX_PRIORITY = 1;

    /**
     * 设备类型
     */
    public static final String OPC_MACHINE = "2";
    public static final String MODBUS_MACHINE = "1";
    public static final String NORMAL_MACHINE = "0";
}
